class ArrayAverage { public static void main(String[] args) { //define an array int[] numbers = new int[]{10, 20, 15, 25, 16, 60, 100};
int sum = 0;
for (int i = 0; i < numbers.length; i++) { sum = sum + numbers[i]; }
double average = sum / numbers.length; System.out.println("Sum of array elements is : " + sum); System.out.println("Average value of array elements is : " + average); } }
class ArrayAverage { public static void main(String[] args) { //define an array int[] numbers = new int[]{10, 20, 15, 25, 16, 60, 100};
int sum = 0;
for (int i = 0; i < numbers.length; i++) { sum = sum + numbers[i]; }
double average = sum / numbers.length; System.out.println("Sum of array elements is : " + sum); System.out.println("Average value of array elements is : " + average); } }
Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. Thereβs another optionβsecure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secureβlike Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.
Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.